package com.example.rpc.sample.server;

import com.example.rpc.sample.api.HelloService;
import com.example.rpc.sample.api.Person;
import com.example.rpc.server.RpcService;

/**
 * @Author Anita
 * @Date 2017/12/25 10:53
 */
@RpcService(HelloService.class)
public class HelloServiceImpl implements HelloService {
    @Override
    public String hello(String name){
        return "Hello!"+name;
    }

    @Override
    public String hello(Person person){
        return "Hello!"+person.getFirstName()+" "+person.getLastName();
    }
}
